﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace InteractiveKidsShow
{
    class PlayPart : StoryPart
    {
        //public Uri vid;
        public bool hasVidPlayed;

        public PlayPart(Uri vid)
        {
            this.vid = vid;
            hasVidPlayed = false;
        }

        public void Play(ref MediaElement mediaPlayer)
        {
            mediaPlayer.Source = vid;
            mediaPlayer.Play();
            hasVidPlayed = true; 
        }

    }
}
